package com.lcn.demo.client;

import com.lcn.demo.entity.Test;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author lilinshen
 * @title 请填写标题
 * @description 请填写相关描述
 * @date 2018/11/28 17:44
 */
@Component
public class Demo2ClientHystric implements Demo2Client {

    @Override
    public List<Test> list() {
        System.out.println("进入断路器-list。。。");
        throw new RuntimeException("list 保存失败.");
    }

    @Override
    public int save() {
        System.out.println("进入断路器-save。。。");
        throw new RuntimeException("save 保存失败.");
    }
}
